<?php

// this contains the application parameters that can be maintained via GUI
return array(
	// this is displayed in the header section
	'title'=>'My Yii Blog',
	// this is used in error pages
	'adminEmail'=>'peng.shan@happyelements.net',

	'siteUrl' => 'http://local.hr/',

	'appIds' => array(1 => '调动' , '2' => '转正'),

	'transferActions' => array(1=>'',2=>'',3=>'',4=>''),

	'transferStatus' => array(1=>'',2=>'',3=>''),
	
	'smtp' => array (
		'CharSet' => 'UTF-8',
		'Encoding' => 'BASE64',
		'SMTPAuth' => true,
		'SMTPSecure' => 'TLS',
		'Host' => 'mail.happyelements.com',
		'Port' => '587',
		'Username' => 'hr_admin',
		'Password' => '1234qwer!',
	),

	//正式环境设置为 0 
	'sysDebug' => 1,
	
	'ucPicUrl' => 'http://uc.happyelements.net/admin/data/pic/',

	'ucUrl' => 'http://uc.happyelements.net/',
	
	'portalUrl' => 'http://portal.happyelements.net/',
	
	'leaveUrl' => 'http://leave.happyelements.net/',
	
	'otUrl' => 'http://ot.happyelements.net/',
	
	'itUrl' => 'http://it.happyelements.net/',
	
	'okrUrl' => 'http://okr.happyelements.net/',

	'positionCategory' => array(1=>'研发',2=>'产品',3=>'Game Distribution',4=>'专业服务'),

	'positionLevelType' => array('L','M','B'),

	'attribute' => array(
		0 => '无',
		1 => '产品',
		2 => '设计',
		3 => '研发',
		4 => 'FC',
		5 => 'QA',
		6 => '市场',
		7 => '职能',
		8 => '管理',
	),

	'departmentAttribute' => array(
		0 => '无',
		1 => '产品',
		2 => '设计',
		3 => '研发',
	),

	'transferRights' => array(
		1 => array('transfer/inbox','transfer/my','transfer/create'), //普通元素
		2 => array('transfer/inbox','transfer/my','transfer/create','transfer/start','transfer/audited'), //部门主管
		3 => array('transfer/inbox','transfer/my','transfer/create','transfer/start'), //部门助理
		4 => array('transfer/inbox','transfer/my','transfer/create','transfer/audited','transfer/start'), //HR 审核者
		5 => array('transfer/inbox','transfer/my','transfer/create','transfer/start','transfer/audited','transfer/index'), //管理员
	),

	'transferFields' => array(
		'id' => 'ID',
		'transfer_c_usernames' => '调动元素',
		'from_department_name' => '原部门',
		'to_department_name' => '新部门',
		'status' => '状态',
		'effective_time' => '生效时间',
		'create_time' => '发起时间',
		'start_c_username' => '发起者',
		'category' => '职级变化',
	),

	'userFields' => array(
		'id' => 'ID',
		'username' => '邮箱',
		'c_username' => '中文名',
		'unique_id' => '工号',
		'department' => '部门',
		'bu' => 'BU',
		'code' => '成本中心',
		'company' => '公司',
		'attribute' => '属性',
		'entry_point' => '入职时间',
	),

	'userLevelFields' => array(
		'id' => 'ID',
		'unique_id' => '工号',
		'attr_id' => '职位描述',
		'attr_L_id' => 'L',
		'attr_M_id' => 'M',
		'B' => 'B',
	),

	'adminRights' => array(
		1 => array('transfer/inbox','transfer/my'), //
		2 => array('transfer/inbox','transfer/my','transfer/create','transfer/start','transfer/audited',), //超级管理员
		3 => array('transfer/inbox','transfer/my','transfer/create','transfer/start',), //HR
		4 => array('transfer/inbox','transfer/my','transfer/create','transfer/start',), //HR
		5 => array('transfer/inbox','transfer/my','transfer/create','transfer/audited',), //Admin
		6 => array('transfer/inbox','transfer/my','transfer/create','transfer/start','transfer/audited','transfer/index'), //管理员
	),



);
